//
//  NSURL+Extension.m
//  WYWPlayer
//
//  Created by Mr.Run on 2017/11/9.
//  Copyright © 2017年 Mr.Run. All rights reserved.
//

#import "NSURL+Extension.h"

@implementation NSURL (Extension)

-(NSURL *)streamingURL{
    NSURLComponents *components = [NSURLComponents componentsWithString:self.absoluteString];
    components.scheme = @"streaming";
    return components.URL;
}

-(NSURL *)httpURL{
    NSURLComponents *components = [NSURLComponents componentsWithString:self.absoluteString];
    components.scheme = @"http";
    return components.URL;
}

@end
